@extends('home/myhouse/layout')
@section('title','个人中心')
@section('content')
<script type="text/javascript" src="/home/js/updatePerson/uploadPreview.js"></script>
  <div style="font-size:30px;font-family:楷体;color:blue;margin-top:15px;margin:20px;">更改个人信息：</div>
  <div style="width:700px;height:600px;margin: 60px auto;">
    @if(count($errors) > 0)
      <div  style="width:305px;border:1px solid red;height:26px;background-image:url('/admin/bglogin/2.png');background-repeat:no-repeat;background-position: 5px 2px;background-color:#EEF3FA;float:left">
          @foreach ($errors->all() as $error)
             <div style="position:relative;top:1px;left:40px;color:red;float:left">{{ $error }}&nbsp;&nbsp;</div>
          @endforeach
      </div>
      <br><br>
     @endif 

    <form action="/home/member/update" method="post" enctype="multipart/form-data">
      {{csrf_field()}} 
      <input type="hidden" name="member_id" value="{{session('member_id')}}">
      <input type="hidden" value="{{session('pic')}}" name="oldpic"> 
      会员名称：<input size=30 type="text" name="name" value="{{session('name')}}"disabled><br><br>
      会员昵称：<input size=30 type="text" name="nickname" value="{{session('nickname')}}"><br><br>
      手机号码：<input size=30 type="text" name="phone" value="{{session('phone')}}"><br><br>
      电子邮箱：<input size=30 type="email" name="email" value="{{session('email')}}"><br><br>
      个人头像：<ul id="warp" style="padding-left:40px;">
                    <li style="list-style-type: none;">
                        <img id="imgShow_WU_FILE_0" width="200" src="{{session('pic')}}" />
                        <input type="file" id="up_img_WU_FILE_0" name="pic" value="{{session('pic')}}"/>
                    </li>
                </ul>    
                <input  style="background:#00A65A;font-size:16px;width:80px;height:30px;color:white;margin-left:130px;"value="提&nbsp;&nbsp;交" type="submit">
    </form>
  </div>   
@stop